package edu.krazy.engine;

/**
 * @(#)Model3D.java
 *
 *
 * @author 
 * @version 1.00 2008/10/22
 */

import com.sun.opengl.util.texture.Texture;


public class Model3D {


	
protected Face[] faceList;
private Vertex3f position;
private float heading;
private float pitching;
private float banking;
private Texture texture;

    public Model3D(Face[] f) {
    	faceList = f;
    	position = new Vertex3f(0f,0f,0f);
    	heading =0f;
    	pitching=0f;
    	banking=0f;
    }
    
    
    public Model3D( Model3D m){
    	
    	
    	faceList = m.getFaceList();
    	texture = m.getTexture();
    	position = m.getPosition();
    	pitching = m.getPitching();
    	heading = m.getHeading();
    	banking = m.getBanking();
    }
    
    
    public float getHeading(){
    	
    	return heading;
    }
    public float getPitching(){
    	
    	return pitching;
    }
    public float getBanking(){
    	return banking;
    }
    public void setHeading(float a)
    {
    	heading=a;
    }
    
    public Face[] getFaceList(){
    	return faceList;
    	
    	
    }
    public void animate(){
    	
    	
    }
    public void setTexture(Texture tx){
    	texture = tx;
    	
    }
    public Texture getTexture(){
    	
    	return texture;
    }
    public Vertex3f getPosition(){
    	
    	return position;
    }
    
    public void setPosition(Vertex3f p)
    {
    	
    	position = p;
    }
    
    public void setPositionX(float x)
    {
    	
    	position.setX(x);
    }
    public void setPositionY(float x)
    {
    	
    	position.setY(x);
    }
    
    public void setPositionZ(float x)
    {
    	
    	position.setZ(x);
    }
    
    public void setPosition(float x, float y, float z)
    {
    	position = new Vertex3f(x,y,z);
    }
    
    public void setTarget(float x, float y, float z)
    {
    	
    }
}
